<%@include file="parts/Header.jsp" %>
<%--
    Document   : About Us
    Created on : 16/08/2011, 11:47:35 ص
    Author     : Ahmed
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Admin-Inbox</title>

        <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
        <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
        <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>

        <script>
            $(function() {
                $( "#accordion" ).accordion();
            });
        </script>
        <style>
            #resizable { width: auto; height: 150px; padding: 0.5em; }
            #resizable h3 { text-align: center; margin: 0; }
        </style>
        <script>
            $(function() {
                $( "#resizable" ).resizable();
            });
        </script>
    </head>
    <body onload="resizePage()">
        <center>
            <div id="innerPageContainer" >
                <table style="width: 100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td class="firstList">Admin Inbox</td>
                        <td rowspan="3" id="innerPageCell" >

                            <div  id="accordion" >
                                <logic:iterate name="AdminBean" property="contactUsMsg" id="msg">

                                    <h3><b><bean:write name="msg" property="msgDate"/><b>&nbsp;&nbsp;|&nbsp;&nbsp;</b><bean:write name="msg" property="msgSubject"/></b><br/></h3>
                                    <div>
                                        <p>
                                            <b><font color="blue">Sender name:</font></b><bean:write name="msg" property="senderName"/><br/>
                                            <b><font color="blue">Sender Mail:</font></b><bean:write name="msg" property="senderMail"/><br/>
                                            <b><font color="blue">Sender Phone:</font></b><bean:write name="msg" property="senderPhone"/><br/>
                                        <div id="resizable" class="ui-widget-content">
                                            <bean:write name="msg" property="msgBody"/>
                                        </div>
                                        <br/>
                                        <html:link action="/admin.do?actionType=deleteMsg"  paramId="mgId" paramName="msg" paramProperty="mgId"  ><i><font color="green">Delete this Msg</font></i></html:link>
                                            </p>
                                        </div>


                                </logic:iterate>
                            </div>
                        </td>
                    </tr>

                    <tr>
                        <td id="menuCell">
                            <logic:iterate name="AboutUsBean"
                                           property="aboutUs" id="titles">
                                <logic:notEqual name="titles" property="showMenu"  value="null">
                                    <ul class="nav">
                                        <li><html:link  action="/contact.do" paramId="title" paramName="titles" paramProperty="aboutUsTerm" ><bean:write name="titles" property="aboutUsTerm"/></html:link></li>
                                        </ul>

                                </logic:notEqual>
                            </logic:iterate>

                        </td>
                    </tr>

                    <tr>
                        <td class="lastList"></td>
                    </tr>

                    <tr>
                        <td colspan="2" class="footer">
                            <jsp:include page="parts/Footer.jsp"/>
                        </td>
                    </tr>
                </table>

            </div>
        </center>
    </body>
</html>

